import request from '@/utils/request'

export function listHoliday(query) {
  return request({
    url: '/data/holiday/list',
    method: 'get',
    params: query
  })
}

export function createHoliday(data) {
  return request({
    url: '/data/holiday/create',
    method: 'post',
    data
  })
}

export function readHoliday(data) {
  return request({
    url: '/data/holiday/read/' + data.id,
    method: 'get'
  })
}

export function updateHoliday(data) {
  return request({
    url: '/data/holiday/update',
    method: 'post',
    data
  })
}

export function deleteHoliday(data) {
  return request({
    url: '/data/holiday/delete/' + data.fholidayid,
    method: 'delete'
  })
}

